package com.isn.util;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class JPAUtil {

	private static final EntityManagerFactory emf;
	
	static{
		try{
			emf=Persistence.createEntityManagerFactory("Aplicacion_DAWII");
		} catch(Exception e){
			e.printStackTrace();
			throw new ExceptionInInitializerError();
		}
	}

	public static EntityManagerFactory getEmf() {
		return emf;
	}
}
